package com.qidian.common;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;

import com.qidian.connection.util.ConnectionPool;


public class Main 
{
	public static void main(String[] args) throws SQLException
	{
		Connection conn = ConnectionPool.getConnection() ;
		
		Statement stt = conn.createStatement() ;
		ResultSet rs = stt.executeQuery("Select 1") ;
		if (rs.next())
			System.out.println(rs.getInt(1)) ;
		
		ConnectionPool.freeConn(conn) ;
		
	}
}
